package com.mach.platform.domain.base;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Set;

/**
 * @author Administrator
 * @Description: 权限表
 * @Package: com.mach.platform.com.mach.platform.domain
 * @Time create on 2017/12/13 11:36
 */
@ApiModel(value = "权限表字段")
@Data
@Entity
@Table(name = "permission")
@DynamicUpdate
public class Permission implements Serializable {

	private static final long serialVersionUID = -677196504380158133L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 权限内容
	 */
	private String content;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private String creationTime;

	/**
	 * 创建人
	 */
	private String creationBy;

	/**
	 * 更新时间
	 */
	private String updateTime;

	/**
	 * 更新人
	 */
	private String updateBy;

	@Transient
	private Set<Role> roles;

}

